<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:m="http://pogodynka.pl" >
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="#{facesContext.externalContext.requestContextPath}/css/style.css" rel="stylesheet" type="text/css" />
	<script language="JavaScript" type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/js/jquery.js"></script>
	<script language="JavaScript" type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/js/pins.js"></script>
	<script language="JavaScript" type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/js/mapClicks.js"></script>
	
	
	<title>#{msg.title}</title>
</h:head>
<h:body>

	<div class="top">
		<h:link outcome="welcome"><h:graphicImage value="/Image?name=logo" /></h:link>
		<div class="menu">
		<ul>
			<li><h:link value="#{msg.forecast}" outcome="forecast"/></li>
			<li><h:link value="#{msg.position}" outcome="welcome"/></li>
			<li>
			<h:form>
				<h:commandLink value="#{msg.logout}" action="#{currentUserAction.logout()}"/>
			</h:form>
			</li>
		</ul>
		</div>
	</div>

	<div class="content">
		<div class="map">
			<m:map>
				<ui:repeat var="pin" value="#{userPositionBean.positions}">
					<m:pin locid="#{pin.id}" locname="#{pin.name}" xCoord="#{pin.positionx}" yCoord="#{pin.positiony}" />
				</ui:repeat>
			</m:map>
		</div>	
		<div class="right">
			<div class="right_text">
				<ui:insert name="right" />
			</div>
			<div class="checkMap"><table><tr><td><h:graphicImage value="/Image?name=arrow" /></td><td>#{msg.checkCondition}</td></tr></table></div>
		</div>

		<div class="text">		
			<ui:insert name="text" />
		</div>	
		<div class="footer">		
			<h:outputText value="#{msg.copyright}" />
		</div>	
	</div>

</h:body>   
</html>

